package project.daggerdemo.network.api;

import java.util.List;

import io.reactivex.Observable;
import project.daggerdemo.network.api.response.RepositoryResponse;
import project.daggerdemo.network.api.response.UserResponse;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by lgs on 2018/3/3.
 */

public interface GitHubApiService {

    @GET("/users/{username}")
    Observable<UserResponse> getUser(@Path("username") String username);

    @GET("/users/{username}/repos")
    Observable<List<RepositoryResponse>> getUsersRepositories(@Path("username") String username);
}
